<template>
    <div>
        <div>支付宝回调参数:{{query}}</div>
        <p>支付结果为:{{msg}}</p>
    </div>
</template>

<script>
import { payment_post, } from './axios_api/api';
export default {
data() {
    return {
        query:this.$route.query,//支付宝的回调参数
        msg:'',
    }
},
methods: {
    payment(){
        let data={query:this.query}
        payment_post(data).then(res=>{
            console.log(res)
            this.msg = res.msg

        })
    }
},
created() {
    this.payment()
},
}
</script>

<style>

</style>
